package com.yunhe.controller;

import java.util.Map;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
/**
 * 客户管理
 * @author 乔冰冰
 * @version 1.0.0
 * @date 2017年5月28日 下午1:02:15
 */
import org.springframework.web.bind.annotation.RequestMethod;

import com.yunhe.entity.Clientuser;
@Controller
public class ClientController {
	/**
	 * 页面跳转
	 * @return
	 */
	@RequestMapping(value="/clients",method=RequestMethod.GET)
	public String clientlist(){
		return "client-list";
	}
	@RequestMapping(value="/client-add",method=RequestMethod.GET)
	public String clientadd(){
		return "client-add";
	}
	@RequestMapping(value = "/clientsGetlikecond",method=RequestMethod.GET)
	public Map<String, Object> getlikecond(){
		
		return null;
	}
	/**
	 * 添加客户信息
	 * @return
	 */
	@RequestMapping(value = "/addClient1",method=RequestMethod.POST)
	public void addClient1(@RequestBody Clientuser clientuser ){
		
		System.out.println("aaaaaaaaaaaaaaaaaa");
		System.out.println(clientuser.getMobile());
		
	}
	

}
